package com.lori.netshop.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lori.netshop.service.UserService;

@Controller
public class UserController {
	@Autowired
	private UserService userServiceimp;
	
	@RequestMapping("/user/logout")
	public String loginout(HttpServletRequest request){
		userServiceimp.loginOut(request);
		return "redirect:/index.html";
	}
}
